import 'package:flutter/material.dart';

class StackView extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
        height: 100,
        width: 100,
        child: Stack(
          children: <Widget>[
              Image.asset(
                "images/lonnv10.jpg",
                fit: BoxFit.cover,
              ),
            Positioned(top:10,child: LinearText()),
          ],
        ));
  }
}

class LinearText extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.center,
      children: <Widget>[
        Text(
          "39.9万",
          style: TextStyle(color: Colors.white, fontSize: 12),
        ),
        Padding(
          padding: EdgeInsets.only(left: 5),
          child: Text(
            "2333",
            style: TextStyle(color: Colors.white, fontSize: 12),
          ),
        ),
        Expanded(
            child: Text(
          "1:50",
          textAlign: TextAlign.end,
          style: TextStyle(color: Colors.red, fontSize: 12),
        ))
      ],
    );
  }
}
